import React from 'react';
import ReactDOM from 'react-dom/client';
import {
  Provider
} from 'react-redux';
import {
  store
} from './store';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <React.StrictMode>
    <Provider store={store}>
      <App />
    </Provider>
  </React.StrictMode>
);

// 如果你想开始测量应用中的性能，将一个函数
// 传递给 log results (例如: reportWebVitals(console.log))
// 或发送到一个分析端点。了解更多: https://bit.ly/CRA-vitals
reportWebVitals();
